$(function(){
	
	   function getViewPortHeight() {
			 return document.documentElement.clientHeight || document.body.clientHeight;
		}
	
	/*子页面*/
	if(screen.width<960){
		var newPassW =  $(document).width()- 240
		console.log( newPassW )
		$(".newPass,.APInewAPI").css({"width":newPassW,"height":getViewPortHeight(),"position":"absolute"})
		$("body").css({"overflow-y":"hidden","overflow-x":"auto","height":getViewPortHeight()})
		$(".bottom").css({"height":getViewPortHeight()})
	}
	
	/*主页面*/
			var MenuleftH =  getViewPortHeight()
			var RightCenterH =$(window).height()-80
			$(".Menuleft").css("height",MenuleftH)
			$(".RightCenter").css("height",RightCenterH)
			
		$(window).on("scroll",function(){
		    var $this = $(this);
		    var st = $this.scrollTop();
		    if(st>80){
		       $(".RightTime").addClass("Shadow")
		    }  else {
		       $(".RightTime").removeClass("Shadow");
		    }
		});
		
		if(screen.width<960){
			$(".RightTime").css({"width":"100%","top":"-80px","position":"absolute","left":"0"})
			$("#header,.Menuleft").css("position","relative")
			$(".Menuleft").css("top","0")
			$(".RightTime>.Time>h3").css("left","0px")
		}
		
})